package cn.jason.controller;

import cn.jason.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Jason
 * @Date: 2022/9/19 18:53
 */
@RestController
public class TestController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/insertOrder/{goodsId}")
    public void insertOrder(@PathVariable("goodsId") Long goodsId) {
        orderService.insertOrder(goodsId);
    }
}
